﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft
{
    /// <summary>
    /// 任务控制器
    /// </summary>
    public interface ITimedTaskControl
    {
       
        /// <summary>
        /// 任务名称
        /// </summary>
        string TaskName { get; }


        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns></returns>
        Result Initialize();


        /// <summary>
        /// 任务执行
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        Result Run(string param);

       
        /// <summary>
        /// 任务是否正在运行
        /// </summary>
        bool Running { get; }



    }
}
